layui.define(['table', 'form', 'upload', 'admin'], function (exports) {
    var $ = layui.$
        , table = layui.table
        , form = layui.form
        , upload = layui.upload
        , admin = layui.admin;

    /***/
    table.render({
        elem: '#LAY-stat-manage'
        , url: '/admin/user/ajax_stat_ticket_log?type=' + $('#type').val()+ "&start_time=" + $("#start_time_input").val() + "&end_time=" + $("#end_time_input").val()
        , totalRow: true
        , cols: [[
            {field: 'date',  title: '日期'}
            , {field: 'ticket_count', title: '总量'}
            , {field: 'user_count', title: '总人数'}
            , {field: 'register_count', title: '注册发放'}
            , {field: 'signin_count', title: '游戏签到发放'}
            , {field: 'recharge_count', title: '绑定充值自动发放'}
            , {field: 'customer_count', title: '人工发放'}
        ]]
        , page: true
        , limit: 20
        , height: 'full-140'
        , text: '对不起，加载出现异常！'
        , even: true
    });

    exports('stat_ticket_log', {})
});